package com.wtwd.campus.h5_manager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2022-03-10
 */
@ApiModel(value="H5Deviceinfo对象", description="")
@TableName(value = "deviceinfo")
public class H5Deviceinfo implements Serializable {

    private static final long serialVersionUID = 15545445454L;

    @ApiModelProperty(value = "设备id")
    @TableId(value = "device_id", type = IdType.AUTO)
    private Integer deviceId;

    @ApiModelProperty(value = "imei号",required = true)
    private String imei;

    @ApiModelProperty(value = "m1卡号")
    private String m1Card;

    @ApiModelProperty(value = "模型",required = true)
    private String model;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "更新时间")
    private Long updateTime;

    @ApiModelProperty(value = "组织code")
    private String orgCode;

    @ApiModelProperty(value = "组织名称")
    private String orgName;

    @ApiModelProperty(value = "学生id")
    private Integer studentId;

    @ApiModelProperty(value = "最后上传时间")
    private Long lastUpTime;

    @ApiModelProperty(value = "sim卡号码")
    private String simCard;

    @ApiModelProperty(value = "工作模式1实时, 2省电模式")
    private Integer workingPattern;

    @ApiModelProperty(value = "定位地址")
    private String address;

    @ApiModelProperty(value = "上传时间间隔")
    private Integer upInterval;

    @ApiModelProperty(value = "电量")
    private Integer battery;

    @ApiModelProperty(value = "速度")
    private Double speed;

    @ApiModelProperty(value = "朝向")
    private String orientation;

    @ApiModelProperty(value = "工作模式的指令序列号,为空表示正常状态")
    private String commandNumber;

    @ApiModelProperty(value = "客户id",required = true)
    private Integer customerId;

    @ApiModelProperty(value = "固件")
    private String firmware;

    @ApiModelProperty(value = "客户学生名字")
    private String cusStuName;

    @ApiModelProperty(value = "1-平台设备 2-云对接设备 3-H5设备 4-和校园设备 5威科姆设备")
    private Integer deviceType;

    @ApiModelProperty(value = "是否有屏幕 0和null表示没有 1有",required = true)
    private Integer ifScreen;

    @ApiModelProperty(value = "设备rfid")
    private String rfid;

    @ApiModelProperty(value = "在线状态",notes = "1:在线,2 不在线")
    @TableField(exist = false)
    private Integer state;

    @TableField(exist = false)
    private Long time;

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getM1Card() {
        return m1Card;
    }

    public void setM1Card(String m1Card) {
        this.m1Card = m1Card;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Long getLastUpTime() {
        return lastUpTime;
    }

    public void setLastUpTime(Long lastUpTime) {
        this.lastUpTime = lastUpTime;
    }

    public String getSimCard() {
        return simCard;
    }

    public void setSimCard(String simCard) {
        this.simCard = simCard;
    }

    public Integer getWorkingPattern() {
        return workingPattern;
    }

    public void setWorkingPattern(Integer workingPattern) {
        this.workingPattern = workingPattern;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getUpInterval() {
        return upInterval;
    }

    public void setUpInterval(Integer upInterval) {
        this.upInterval = upInterval;
    }

    public Integer getBattery() {
        return battery;
    }

    public void setBattery(Integer battery) {
        this.battery = battery;
    }

    public Double getSpeed() {
        return speed;
    }

    public void setSpeed(Double speed) {
        this.speed = speed;
    }

    public String getOrientation() {
        return orientation;
    }

    public void setOrientation(String orientation) {
        this.orientation = orientation;
    }

    public String getCommandNumber() {
        return commandNumber;
    }

    public void setCommandNumber(String commandNumber) {
        this.commandNumber = commandNumber;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getFirmware() {
        return firmware;
    }

    public void setFirmware(String firmware) {
        this.firmware = firmware;
    }

    public String getCusStuName() {
        return cusStuName;
    }

    public void setCusStuName(String cusStuName) {
        this.cusStuName = cusStuName;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getIfScreen() {
        return ifScreen;
    }

    public void setIfScreen(Integer ifScreen) {
        this.ifScreen = ifScreen;
    }

    public String getRfid() {
        return rfid;
    }

    public void setRfid(String rfid) {
        this.rfid = rfid;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "H5Deviceinfo{" +
                "deviceId=" + deviceId +
                ", imei='" + imei + '\'' +
                ", m1Card='" + m1Card + '\'' +
                ", model='" + model + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", orgCode='" + orgCode + '\'' +
                ", orgName='" + orgName + '\'' +
                ", studentId=" + studentId +
                ", lastUpTime=" + lastUpTime +
                ", simCard='" + simCard + '\'' +
                ", workingPattern=" + workingPattern +
                ", address='" + address + '\'' +
                ", upInterval=" + upInterval +
                ", battery=" + battery +
                ", speed=" + speed +
                ", orientation='" + orientation + '\'' +
                ", commandNumber='" + commandNumber + '\'' +
                ", customerId=" + customerId +
                ", firmware='" + firmware + '\'' +
                ", cusStuName='" + cusStuName + '\'' +
                ", deviceType=" + deviceType +
                ", ifScreen=" + ifScreen +
                ", rfid='" + rfid + '\'' +
                ", state=" + state +
                ", time=" + time +
                '}';
    }
}
